cmake_minimum_required(VERSION 3.15)
project(CPLUS-HELLO LANGUAGES CXX)
if(MSVC)
    add_compile_options("/utf-8")
elseif(MINGW)
    add_compile_options(-fexec-charset=utf-8)
    add_compile_options(-finput-charset=utf-8)
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(BUILD_SHARED_LIBS OFF)
find_package(fmt CONFIG REQUIRED)
find_package(spdlog CONFIG REQUIRED)

add_executable(CPLUS-HELLO
    main.cpp
    example/example.cpp
    example/dataLen.cpp
)

target_link_libraries(CPLUS-HELLO PRIVATE 
    fmt::fmt 
    spdlog::spdlog
)